﻿<%@ Page Title="" Language="C#" MasterPageFile="~/resumemanager/resume.master" Inherits="WebManager.BasePage" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Import Namespace="TalentPools.BLL" %>
<%@ Import Namespace="TalentPools.Model" %>
<script runat="server">
    /// <summary>
    /// 简历ID
    /// </summary>
    public int ResumeId
    {
        get
        {
            return Convert.ToInt32(ViewState["resumeId"]);
        }
        set
        {
            ViewState["resumeId"] = value;
        }
    }
    CreateresumeManager creater = new CreateresumeManager();
    string username;
    protected void Page_Load(object sender, EventArgs e)
    {
        //判断用户是否登录，没有登录则跳出
        if (!MyUserLogin())
        {
            JsWindows("请先登录", "../Index.aspx");
            return;
        }
        this.txtrecordbegintime.Attributes.Add("ReadOnly", "true");
        this.txtrecordendtime.Attributes.Add("ReadOnly", "true");
        this.txttrainbegintime.Attributes.Add("ReadOnly", "true");
        this.txttrainendtime.Attributes.Add("ReadOnly", "true");

        username = Server.UrlDecode(Request.Cookies["User"].Values["name"]);
        if (new checkresumeManager().getcountByname(username) >= 5)
        {
            JsWindows("您的简历数达到上限", "checkmyresume.aspx");
            return;
        }
        //第一次加载页面，绑定数据
        if (!IsPostBack)
        {
            BindData();
        }
    }
    #region 绑定数据
    /// <summary>
    /// 绑定数据
    /// </summary>
    private void BindData()
    {
        baseConfigManager baseconfig = new baseConfigManager();
        //绑定工作时间
        ddlworkyear.DataSource = baseconfig.getconfigInfo("工作时间");
        ddlworkyear.DataTextField = "value";
        ddlworkyear.DataValueField = "value";
        ddlworkyear.DataBind();
        //绑定婚姻状态
        ddlmarriagestate.DataSource = baseconfig.getconfigInfo("婚姻状态");
        ddlmarriagestate.DataTextField = "value";
        ddlmarriagestate.DataValueField = "value";
        ddlmarriagestate.DataBind();
        //绑定政治面貌
        ddlzzmianmao.DataSource = baseconfig.getconfigInfo("政治面貌");
        ddlzzmianmao.DataTextField = "value";
        ddlzzmianmao.DataValueField = "value";
        ddlzzmianmao.DataBind();
        //绑定工作地点
        ddlworkplace.DataSource = baseconfig.getconfigInfo("地点");
        ddlworkplace.DataTextField = "value";
        ddlworkplace.DataValueField = "value";
        ddlworkplace.DataBind();
        //绑定行业
        ddlhy.DataSource = baseconfig.getconfigInfo("行业");
        ddlhy.DataTextField = "value";
        ddlhy.DataValueField = "value";
        ddlhy.DataBind();
        //绑定职位
        ddlzhiwei.DataSource = baseconfig.getconfigInfo("职位");
        ddlzhiwei.DataTextField = "value";
        ddlzhiwei.DataValueField = "value";
        ddlzhiwei.DataBind();
        //绑定薪资要求
        ddlmoney.DataSource = baseconfig.getconfigInfo("薪资");
        ddlmoney.DataTextField = "value";
        ddlmoney.DataValueField = "value";
        ddlmoney.DataBind();
        //绑定目前状态
        rblcurrentstate.DataSource = baseconfig.getconfigInfo("目前状态");
        rblcurrentstate.DataTextField = "value";
        rblcurrentstate.DataValueField = "value";
        rblcurrentstate.DataBind();
        //绑定技能列表
        cblskill.DataSource = baseconfig.getconfigInfo("技能");
        cblskill.DataTextField = "value";
        cblskill.DataValueField = "value";
        cblskill.DataBind();
    }
    #endregion

    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        if (Page.IsValid)
        {
            //构造简历对象
            resume resume = new resume();
            resume.resumeName = txtresumename.Text.Trim();
            resume.username = Server.UrlDecode(Request.Cookies["User"].Values["name"]);
            resume.name = txtrealname.Text.Trim();
            resume.sex = rblsex.SelectedValue;
            resume.birthday = Convert.ToDateTime(txtbirthday.Text.Trim());
            resume.marriage = ddlmarriagestate.SelectedValue;
            resume.card = txtidcard.Text.Trim();
            resume.politicsStatus = ddlzzmianmao.SelectedValue;
            resume.HKPlace = txthlplace.Text.Trim();
            resume.city = txtcurrentcity.Text.Trim();
            resume.currentAddress = txtaddress.Text.Trim();
            resume.zipCode = txtyzbm.Text.Trim();
            resume.cellphone = txtmobile.Text.Trim();
            resume.phoneCode = txttellphone.Text.Trim();
            resume.email = txtemail.Text.Trim();
            resume.homePage = txtpage.Text.Trim();
            resume.workYear = ddlworkyear.SelectedValue;
            if (rbresumestate.SelectedValue == "1")
            {
                resume.isPublic = true;
            }
            else
            {
                resume.isPublic = false;
            }
            resume.createTime = DateTime.Now;
            ViewState["createTime"] = resume.createTime;
            resume.lastUpdateTime = DateTime.Now;
            if (creater.insertresumeInfo(resume))
            {
                ResumeId = creater.GetResumeId(username, Convert.ToDateTime(ViewState["createTime"]));
                if (resume.isPublic == true)
                {
                    string msg = creater.SetResumeState(username, ResumeId);//更新简历状态
                    if (msg != "")
                    {
                        lblbasemean.Text = msg;
                        return;
                    }

                }
                //添加成功，显示求职意向表
                plbasemean.Visible = false;
                plintention.Visible = true;
            }
            else
            {
                lblbasemean.Text = "添加失败，如果确认填写信息无误，请联系管理员解决问题！";
            }
        }
    }

    protected void btnsubmit_Intention_Click(object sender, EventArgs e)
    {

        intention inte = new intention();
        inte.jobCategory = rbwtype.SelectedValue;
        inte.pay = ddlmoney.SelectedValue;
        inte.resumeId = ResumeId;
        inte.state = rblcurrentstate.SelectedValue;
        inte.industry = ddlhy.SelectedValue;
        inte.profession = ddlzhiwei.SelectedValue;
        inte.area = ddlworkplace.SelectedValue;
        if (creater.createIntention(inte))
        {
            plintention.Visible = false;
            pltraining.Visible = true;
        }
        else
        {
            lblintention.Text = "求职意向添加失败，如果确认信息填写无误，请联系管理员解决问题！";
        }
    }

    protected void btnSubmit_train_Click(object sender, EventArgs e)
    {
        if (IsValid)
        {
            training tr = new training();
            tr.tittle = txttraintitle.Text.Trim();
            tr.beginTime = Convert.ToDateTime(txttrainbegintime.Text.Trim());
            tr.endTime = Convert.ToDateTime(txttrainendtime.Text.Trim());
            tr.result = txttrainresult.Text.Trim();
            tr.details = txttraindes.Text.Trim();
            tr.resumeId = ResumeId;
            if (creater.createTraning(tr))
            {
                pltraining.Visible = false;
                plrecord.Visible = true;
            }
            else
            {
                lbltrain.Text = "添加培训信息失败，如果确认填写信息无误，请联系管理员解决问题！";
            }
        }
    }

    protected void btnsubmit_record_Click(object sender, EventArgs e)
    {
        if (IsValid)
        {
            record re = new record();
            re.resumeId = ResumeId;
            re.title = txtrecordtitle.Text.Trim();
            re.beginTime = Convert.ToDateTime(txtrecordbegintime.Text.Trim());
            re.endTime = Convert.ToDateTime(txtrecordendtime.Text.Trim());
            re.content = txtrecordcontent.Text.Trim();
            re.details = txtrecorddes.Text.Trim();
            if (creater.creatRecord(re))
            {
                plrecord.Visible = false;
                plskill.Visible = true;
            }
            else
            {
                lblrecord.Text = "添加工作履历失败，如果确认天下信息无误，请联系管理员解决问！";
            }
        }
    }

    protected void btnsubmit_skill_Click(object sender, EventArgs e)
    {
        string skillStr = "";
        foreach (ListItem item in cblskill.Items)
        {
            if (item.Selected)
            {
                if (skillStr == "")
                {
                    skillStr += item.Text;
                }
                else
                {
                    skillStr += "," + item.Text;
                }
            }
        }
        if (skillStr == "")
        {
            lblskill.Text = "请选择精通的技能！";
            return;
        }
        Skill skill = new Skill();
        skill.Name = skillStr;
        skill.resumeId = ResumeId;
        if (new SkillManager().InsertSkill(skill))
        {
            plskill.Visible = false;
            plcustom.Visible = true;
        }
        else
        {
            lblskill.Text = "添加技能失败，如果确认选择无误，请联系管理员解决！";
        }
    }

    protected void btnsubmit_custom_Click(object sender, EventArgs e)
    {
        if (IsValid)
        {
            custom cus = new custom();
            cus.content = txtcustomtitle.Text.Trim();
            cus.resumeId = ResumeId;
            cus.tittle = txtcustomdes.Text.Trim();
            if (creater.createCustom(cus))
            {
                plcustom.Visible = false;
                JsWindows("恭喜您完成了简历的填写！", "checkmyresume.aspx");
            }
            else
            {
                lblcustom.Text = "添加自定义信息失败，如果确认填写信息无误，请联系管理员解决！";
            }
        }
    }

    protected void btngo_skill_Click(object sender, EventArgs e)
    {
        plskill.Visible = false;
        plcustom.Visible = true;
    }

    protected void btngo_record_Click(object sender, EventArgs e)
    {
        plrecord.Visible = false;
        plskill.Visible = true;
    }

    protected void btngo_train_Click(object sender, EventArgs e)
    {
        pltraining.Visible = false;
        plrecord.Visible = true;
    }

    protected void btngo_custom_Click(object sender, EventArgs e)
    {
        JsWindows("恭喜你完成了一份简历", "checkmyresume.aspx");
    }
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager runat="server">
    </asp:ScriptManager>
    <asp:Panel ID="plbasemean" runat="server" Visible="true">
        <table width='100%' border='0' align='center' cellpadding='4' cellspacing='1' class='border'>
            <tr class='tdbg'>
                <td colspan="2" class="topbg2">
                    <div align="center" class="Glow">
                        <strong>基 本 资 料</strong></div>
                </td>
            </tr>
            <tr class='tdbg'>
                <td width="23%" class="tdbg1">
                    <div align="right">
                        <span class="style4">*</span>简历名称：</div>
                </td>
                <td class="tdbg2" style="width: 482px">
                    <input type="hidden" name="position" />
                    <asp:TextBox ID="txtresumename" runat="server"></asp:TextBox><span class="style4">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtresumename"
                            runat="server" ErrorMessage="请填写简历名称" SetFocusOnError="True"></asp:RequiredFieldValidator></span>
                </td>
            </tr>
            <tr class='tdbg'>
                <td width="23%" class="tdbg1">
                    <div align="right">
                        <span class="style4">*</span>姓名：</div>
                </td>
                <td class="tdbg2" style="width: 482px">
                    <asp:TextBox ID="txtrealname" runat="server"></asp:TextBox><span class="style4"><asp:RequiredFieldValidator
                        ID="RequiredFieldValidator2" ControlToValidate="txtrealname" runat="server" ErrorMessage="请填写姓名"></asp:RequiredFieldValidator></span>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        性别：</div>
                </td>
                <td class="tdbg2" style="width: 482px">
                    <asp:RadioButtonList ID="rblsex" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <asp:ListItem Value="男" Text="男" Selected="True"></asp:ListItem>
                        <asp:ListItem Value="女" Text="女"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        出生日期：</div>
                </td>
                <td class="tdbg2" style="width: 482px">
                    <asp:TextBox ID="txtbirthday" runat="server" Width="150px"></asp:TextBox><asp:CalendarExtender
                        ID="CalendarExtender1" DaysModeTitleFormat="yyyy-MM-dd" TargetControlID="txtbirthday"
                        runat="server">
                    </asp:CalendarExtender>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ControlToValidate="txtbirthday"
                        ErrorMessage="出生日期不能为空"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        <div align="right">
                            工作时间：</div>
                    </div>
                </td>
                <td class="tdbg2" style="width: 482px">
                    <asp:DropDownList ID="ddlworkyear" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        <div align="right">
                            婚姻状态：</div>
                    </div>
                </td>
                <td class="tdbg2" style="width: 482px">
                    <asp:DropDownList ID="ddlmarriagestate" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        <div align="right">
                            身份证号：</div>
                    </div>
                </td>
                <td class="tdbg2" style="width: 482px">
                    <asp:TextBox ID="txtidcard" runat="server" MaxLength="20"></asp:TextBox>
                    <span class="style4">
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" ControlToValidate="txtidcard"
                            runat="server" ErrorMessage="身份证格式不正确" ValidationExpression="\d{17}[\d|X]|\d{15}"></asp:RegularExpressionValidator></span>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        <div align="right">
                            政治面貌：</div>
                    </div>
                </td>
                <td class="tdbg2" style="width: 482px">
                    <asp:DropDownList ID="ddlzzmianmao" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        <div align="right">
                            户口所在地：</div>
                    </div>
                </td>
                <td class="tdbg2" style="width: 482px">
                    <asp:TextBox ID="txthlplace" runat="server" MaxLength="50"></asp:TextBox>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        <div align="right">
                            现居住城市：</div>
                    </div>
                </td>
                <td class="tdbg2" style="width: 482px">
                    <asp:TextBox ID="txtcurrentcity" runat="server" MaxLength="50"></asp:TextBox>
                </td>
            </tr>
            <tr class='tdbg'>
                <td width="23%" class="tdbg1">
                    <div align="right">
                        邮政编码：</div>
                </td>
                <td width="77%" class="tdbg2">
                    <asp:TextBox ID="txtyzbm" runat="server"></asp:TextBox>
                    <span class="style4">
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="邮政编码格式不正确"
                            ControlToValidate="txtyzbm" ValidationExpression="\d{6}"></asp:RegularExpressionValidator>
                    </span>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        手机号码：</div>
                </td>
                <td class="tdbg2">
                    <asp:TextBox ID="txtmobile" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        固话：</div>
                </td>
                <td class="tdbg2">
                    <asp:TextBox ID="txttellphone" runat="server"></asp:TextBox>
                    <span class="style4">
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" ErrorMessage="电话格式不正确"
                            ControlToValidate="txttellphone" ValidationExpression="(\(\d{3}\)|\d{3}-)?\d{8}"></asp:RegularExpressionValidator></span>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        <span class="style4"></span>电子邮箱：</div>
                </td>
                <td class="tdbg2">
                    <asp:TextBox ID="txtemail" runat="server"></asp:TextBox>
                    <span class="style4">
                        <asp:RegularExpressionValidator ControlToValidate="txtemail" ID="RegularExpressionValidator1"
                            runat="server" ErrorMessage="邮箱格式不正确" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></span>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        联系地址：</div>
                </td>
                <td class="tdbg2">
                    <asp:TextBox ID="txtaddress" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        个人主页：</div>
                </td>
                <td class="tdbg2">
                    <asp:TextBox ID="txtpage" runat="server"></asp:TextBox>
                    <span class="style4">
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ErrorMessage="输入的网址格式不正确"
                            ControlToValidate="txtpage" ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"></asp:RegularExpressionValidator></span>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        简历状态：</div>
                </td>
                <td class="tdbg2" style="width: 482px">
                    <asp:RadioButtonList ID="rbresumestate" runat="server" RepeatDirection="Horizontal"
                        RepeatLayout="Flow">
                        <asp:ListItem Value="1" Text="公开"></asp:ListItem>
                        <asp:ListItem Value="0" Text="不公开" Selected="True"></asp:ListItem>
                    </asp:RadioButtonList>
                    <span class="style4">&nbsp;注意：只能公开一份简历，如果此份简历被公开，其他简历将被屏蔽</apan>
                </td>
            </tr>
        </table>
        <br />
        <table width="100%" border="0">
            <tr>
                <td>
                    <div align="center">
                        &nbsp;<asp:Button ID="btnSubmit" runat="server" Text="提 交" OnClick="btnSubmit_Click" />&nbsp;
                        <label>
                            <input type="reset" name="Submit2" value="重 置" /><br />
                            <asp:Label ID="lblbasemean" runat="server" ForeColor="Red"></asp:Label></label></div>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="plintention" runat="server" Visible="false">
        <table width='100%' border='0' align='center' cellpadding='4' cellspacing='1' class='border'>
            <tr class='tdbg'>
                <td colspan="2" class="topbg2">
                    <div align="center" class="Glow">
                        <strong>求 职 意 向</strong></div>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        工作类型：</div>
                </td>
                <td class="tdbg2" style="width: 482px">
                    <asp:RadioButtonList ID="rbwtype" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <asp:ListItem Selected="True" Value="不限">不限</asp:ListItem>
                        <asp:ListItem Value="全职">全职</asp:ListItem>
                        <asp:ListItem Value="兼职">兼职</asp:ListItem>
                        <asp:ListItem Value="实习">实习</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        工作地点：</div>
                </td>
                <td class="tdbg2" style="width: 482px">
                    <asp:DropDownList ID="ddlworkplace" runat="server" Width="">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        职位：</div>
                </td>
                <td class="tdbg2" style="width: 482px">
                    <asp:DropDownList ID="ddlzhiwei" runat="server" Width="">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        行业：</div>
                </td>
                <td class="tdbg2" style="width: 482px">
                    <asp:DropDownList ID="ddlhy" runat="server" Width="">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        <div align="right">
                            薪资要求：</div>
                    </div>
                </td>
                <td class="tdbg2" style="width: 482px">
                    <asp:DropDownList ID="ddlmoney" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        目前状态：</div>
                </td>
                <td class="tdbg2" style="width: 482px">
                    <asp:RadioButtonList ID="rblcurrentstate" Width="482px" runat="server" RepeatDirection="Vertical">
                    </asp:RadioButtonList>
                </td>
            </tr>
        </table>
        <br />
        <table width="100%" border="0">
            <tr>
                <td>
                    <div align="center">
                        &nbsp;<asp:Button ID="btnsubmit_Intention" runat="server" Text="提 交" OnClick="btnsubmit_Intention_Click" />&nbsp;
                        <label>
                            <input type="reset" name="Submit2" value="重 置" /><br />
                            <asp:Label ID="lblintention" runat="server" ForeColor="Red"></asp:Label></label></div>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <div id="trainingP">
        <asp:Panel ID="pltraining" runat="server" Visible="false">
        <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>
            <tr class='tdbg'>
                <td colspan="2" class="topbg2">
                    <div align="center" class="Glow">
                        <strong>培 训 经 历</strong></div>
                </td>
            </tr>
            <tr class='tdbg'>
                <td width="23%" class="tdbg1">
                    <div align="right">
                        <span class="style4">*</span>信息标题：</div>
                </td>
                <td width="77%" class="tdbg2">
                    <asp:TextBox ID="txttraintitle" runat="server"></asp:TextBox>
                    <span class="style4">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txttraintitle"
                            ErrorMessage="请输入培训信息描述性的标题"></asp:RequiredFieldValidator>
                    </span>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        <span class="style4">*</span>开始时间：</div>
                </td>
                <td class="tdbg2">
                    <asp:TextBox ID="txttrainbegintime" runat="server"></asp:TextBox>
                    <asp:CalendarExtender ID="CalendarExtender2" TargetControlID="txttrainbegintime"
                        runat="server">
                    </asp:CalendarExtender>
                    <span class="style4">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="txttrainbegintime"
                            runat="server" ErrorMessage="请选择培训开始时间"></asp:RequiredFieldValidator>
                    </span>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        <span class="style4">*</span>结束时间：</div>
                </td>
                <td class="tdbg2">
                    <asp:TextBox ID="txttrainendtime" runat="server"></asp:TextBox>
                    <asp:CalendarExtender ID="CalendarExtender3" TargetControlID="txttrainendtime" runat="server">
                    </asp:CalendarExtender>
                    <span class="style4">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" ControlToValidate="txttrainendtime"
                            runat="server" ErrorMessage="请选择培训结束时间"></asp:RequiredFieldValidator>
                    </span>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        <span class="style4"></span>获得证书：</div>
                </td>
                <td class="tdbg2">
                    <asp:TextBox ID="txttrainresult" runat="server"></asp:TextBox>
                    <span class="style4" style="color: #333">不填表示没有获得任何证书</span>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        <span class="style4">*</span>详细描述：</div>
                </td>
                <td class="tdbg2" style="width: 482px">
                    <asp:TextBox ID="txttraindes" runat="server" Height="138px" TextMode="MultiLine"
                        Width="343px"></asp:TextBox>
                    <span class="style4">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="txttraindes"
                            ErrorMessage="请输入培训描述信息"></asp:RequiredFieldValidator>
                    </span>
                </td>
            </tr>
        </table>
        <br />
        <table width="100%" border="0">
            <tr>
                <td>
                    <div align="center">
                        &nbsp;<asp:Button ID="btnSubmit_train" runat="server" Text="提 交" OnClick="btnSubmit_train_Click" />
                        &nbsp;&nbsp;
                        <asp:Button ID="btngo_train" runat="server" Text="跳 过" 
                            OnClick="btngo_train_Click" CausesValidation="False" />
                        <%--<input name="tg1" type="button" value="跳过" />--%>
                        &nbsp;
                        <label>
                            <input type="reset" name="Submit2" value="重 置" /><br />
                            <asp:Label ID="lbltrain" runat="server" ForeColor="Red"></asp:Label></label></div>
                    <span class="red_font">注意</span>：此处最多一项，简历修改中可以添加更多培训信息。
                </td>
            </tr>
        </table>
    </asp:Panel>
    </div>
    <asp:Panel ID="plrecord" runat="server" Visible="false">
        <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>
            <tr class='tdbg'>
                <td colspan="2" class="topbg2">
                    <div align="center" class="Glow">
                        <strong>工 作 履 历</strong></div>
                </td>
            </tr>
            <tr class='tdbg'>
                <td width="23%" class="tdbg1">
                    <div align="right">
                        <span class="style4">*</span>信息标题：</div>
                </td>
                <td width="77%" class="tdbg2">
                    <asp:TextBox ID="txtrecordtitle" runat="server"></asp:TextBox>
                    <span class="style4">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtrecordtitle"
                            ErrorMessage="请输入工作履历描述性的标题"></asp:RequiredFieldValidator>
                    </span>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        <span class="style4">*</span>开始时间：</div>
                </td>
                <td class="tdbg2">
                    <asp:TextBox ID="txtrecordbegintime" runat="server"></asp:TextBox>
                    <asp:CalendarExtender ID="CalendarExtender4" TargetControlID="txtrecordbegintime"
                        runat="server">
                    </asp:CalendarExtender>
                    <span class="style4">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" ControlToValidate="txtrecordbegintime"
                            runat="server" ErrorMessage="请选择工作开始时间"></asp:RequiredFieldValidator>
                    </span>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        <span class="style4">*</span>结束时间：</div>
                </td>
                <td class="tdbg2">
                    <asp:TextBox ID="txtrecordendtime" runat="server"></asp:TextBox>
                    <asp:CalendarExtender ID="CalendarExtender5" TargetControlID="txtrecordendtime" runat="server">
                    </asp:CalendarExtender>
                    <span class="style4">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" ControlToValidate="txtrecordendtime"
                            runat="server" ErrorMessage="请选择工作结束时间"></asp:RequiredFieldValidator>
                    </span>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        <span class="style4">*</span>工作内容：</div>
                </td>
                <td class="tdbg2">
                    <asp:TextBox ID="txtrecordcontent" runat="server"></asp:TextBox>
                    <span class="style4" style="color: #333">
                        <asp:RequiredFieldValidator ControlToValidate="txtrecordcontent" ID="RequiredFieldValidator9"
                            runat="server" ErrorMessage="请输入工作内容"></asp:RequiredFieldValidator>
                    </span>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        <span class="style4">*</span>详细描述：</div>
                </td>
                <td class="tdbg2" style="width: 482px">
                    <asp:TextBox ID="txtrecorddes" runat="server" Height="138px" TextMode="MultiLine"
                        Width="343px"></asp:TextBox>
                    <span class="style4" style="color: #333">
                        <asp:RequiredFieldValidator ControlToValidate="txtrecorddes" ID="RequiredFieldValidator10"
                            runat="server" ErrorMessage="请输入工作描述"></asp:RequiredFieldValidator>
                    </span>
                </td>
            </tr>
        </table>
        <br />
        <table width="100%" border="0">
            <tr>
                <td>
                    <div align="center">
                        &nbsp;<asp:Button ID="btnsubmit_record" runat="server" Text="提 交" OnClick="btnsubmit_record_Click" />
                        &nbsp;&nbsp;
                        <asp:Button ID="btngo_record" runat="server" Text="跳 过" 
                            OnClick="btngo_record_Click" CausesValidation="False" />
                        <%--<input type="button" name="tg2" value="跳过" />--%>
                        &nbsp;
                        <label>
                            <input type="reset" name="Submit2" value="重 置" /><br />
                            <asp:Label ID="lblrecord" runat="server" ForeColor="Red"></asp:Label></label></div>
                    <span class="red_font">注意</span>：此处最多一项，简历修改中可以添加更多工作信息。
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="plskill" runat="server" Visible="false">
        <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>
            <tr class='tdbg'>
                <td colspan="2" class="topbg2">
                    <div align="center" class="Glow">
                        <strong>精 通 技 能</strong></div>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        技能项：</div>
                </td>
                <td class="tdbg2" style="width: 482px">
                    <asp:CheckBoxList ID="cblskill" Width="482px" runat="server" RepeatColumns="2" RepeatDirection="Horizontal">
                    </asp:CheckBoxList>
                </td>
            </tr>
        </table>
        <br />
        <table width="100%" border="0">
            <tr>
                <td>
                    <div align="center">
                        &nbsp;<asp:Button ID="btnsubmit_skill" runat="server" Text="提 交" OnClick="btnsubmit_skill_Click" />
                        &nbsp;&nbsp;
                        <asp:Button ID="btngo_skill" runat="server" Text="跳 过" 
                            OnClick="btngo_skill_Click" CausesValidation="False" 
                            onclientclick="return confirm(&quot;如果没有选中技能，简历则无法被搜索到&quot;)" />
                        <%--<input type="button" value="跳过" name="tg3" />--%>
                        &nbsp;
                        <label>
                            <input type="reset" name="Submit2" value="重 置" /><br />
                            <asp:Label ID="lblskill" runat="server" ForeColor="Red"></asp:Label></label></div>
                    <span class="red_font">注意</span>：如果没有选中技能，简历则无法被搜索到。
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="plcustom" runat="server" Visible="false">
        <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>
            <tr class='tdbg'>
                <td colspan="2" class="topbg2">
                    <div align="center" class="Glow">
                        <strong>自 定 义 信 息</strong></div>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        <span class="style4">*</span>自定义标题：</div>
                </td>
                <td class="tdbg2">
                    <asp:TextBox ID="txtcustomtitle" runat="server"></asp:TextBox>
                    <span class="style4" style="color: #333">
                        <asp:RequiredFieldValidator ControlToValidate="txtcustomtitle" ID="RequiredFieldValidator15"
                            runat="server" ErrorMessage="请输入自定义标题"></asp:RequiredFieldValidator>
                    </span>
                </td>
            </tr>
            <tr class='tdbg'>
                <td class="tdbg1">
                    <div align="right">
                        <span class="style4">*</span>详细描述：</div>
                </td>
                <td class="tdbg2" style="width: 482px">
                    <asp:TextBox ID="txtcustomdes" runat="server" Height="138px" TextMode="MultiLine"
                        Width="343px"></asp:TextBox>
                    <span class="style4" style="color: #333">
                        <asp:RequiredFieldValidator ControlToValidate="txtcustomdes" ID="RequiredFieldValidator16"
                            runat="server" ErrorMessage="请输入自定义内容"></asp:RequiredFieldValidator>
                    </span>
                </td>
            </tr>
        </table>
        <br />
        <table width="100%" border="0">
            <tr>
                <td>
                    <div align="center">
                        &nbsp;<asp:Button ID="btnsubmit_custom" runat="server" Text="提 交" OnClick="btnsubmit_custom_Click" />
                        &nbsp;&nbsp;
                        <asp:Button ID="btngo_custom" runat="server" Text="直接完成" 
                            OnClick="btngo_custom_Click" CausesValidation="False" />
                        <%--<input type="button" value="直接完成" name="tg4" />--%>
                        &nbsp;
                        <label>
                            <input type="reset" name="Submit2" value="重 置" /><br />
                            <asp:Label ID="lblcustom" runat="server" ForeColor="Red"></asp:Label></label></div>
                    <span class="red_font">注意</span>：此处最多一项，简历修改中可以添加更多自定义信息信息。
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
